package cn.cqie.frame;


import lombok.extern.java.Log;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

/**
 * @author 谢一弘
 * @date 2021/9/1  9:28
 */
@Log
@SpringBootApplication
@MapperScan("cn.cqie.frame.mapper")
@EnableScheduling
public class MainApplication {
    public static void main(String[] args) {
      SpringApplication.run(MainApplication.class,args);
      log.info("~~~系统启动成功~~~");

  }
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
